Skip to content

feat: add PHP 8.6 images - #36

Open
clvsh wants to merge 2 commits into
mainfrom
feat/php-8.6
Open

clvsh wants to merge 2 commits into
mainfrom
feat/php-8.6

Conversation

@clvsh

@clvsh clvsh commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add source-built PHP 8.6 development and production images for Debian Bookworm and Trixie on linux/amd64 and linux/arm64.
  • Move the latest and php8 aliases to PHP 8.6 for both Debian suites and both variants. Keep publishing the versioned 8.4 and 8.5 tags.
  • Verify PHP 8.6 sources with the official release-manager keys. Use the upstream PHP 8.6 fixes for Imagick and IMAP, install SQL Server drivers through PIE, and use the Xdebug 3.6 prerelease in development images.

Validation

  • docker buildx bake --print confirmed all 12 targets and both platforms. docker buildx bake --print local-dev selected PHP 8.6.
  • docker buildx bake --print | bash docker/resolve-sources.sh resolved all three PHP versions. The local ARM64 Trixie builder verified the PHP 8.6.0 signature and compiled PHP.
  • bash .github/scripts/test-source-build.sh, bash -n docker/build-php.sh, php -l test.php, actionlint .github/workflows/pipeline.yml, and git diff --check passed.
  • Both ARM64 Trixie images built locally and passed the acceptance suite, including the embedded FrankenPHP HTTP smoke test. Verified that Microsoft ODBC Driver 18 is registered and PIE build caches are absent.
  • GitHub Actions covers the full platform and Debian matrix.
docker buildx bake --print runner-php-8-6-trixie-prod runner-php-8-6-trixie-dev \
    | bash docker/resolve-sources.sh > /tmp/frankenphp-php86-sources.json
docker buildx bake -f docker-bake.hcl -f /tmp/frankenphp-php86-sources.json \
    --set '*.platform=linux/arm64' \
    --set runner-php-8-6-trixie-prod.tags=frankenphp:php86-trixie-prod \
    --set runner-php-8-6-trixie-dev.tags=frankenphp:php86-trixie-dev \
    --load --progress plain runner-php-8-6-trixie-prod runner-php-8-6-trixie-dev
docker run --rm -v "$PWD/test.php:/test.php:ro" frankenphp:php86-trixie-prod php /test.php production
docker run --rm -v "$PWD/test.php:/test.php:ro" frankenphp:php86-trixie-dev php /test.php dev

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T21:07:48.033161Z 11c409f PR opened
🔒 Security Review ✅ Completed 2026-11-22T21:12:08.336480Z 11c409f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The build matrix and image configuration add PHP 8.6 alongside PHP 8.4 and 8.5. The Dockerfile selects PHP 8.6-specific installation paths for several extensions. The README updates its examples and documents the new version and aliases.

Changes: PHP 8.6 image support

Layer / File(s) Summary
Configure PHP 8.6 builds
docker-bake.hcl, docker/build-php.sh
The build matrix now includes PHP 8.6, and the latest alias defaults to 8.6. The PHP build script adds PHP 8.6 signing-key fingerprints and applies --with-pic only to PHP 8.4 and 8.5.
Select PHP 8.6 extension installers
Dockerfile
For PHP 8.6, the image uses pinned Imagick and IMAP sources, installs SQL Server drivers through PIE, and installs Xdebug 3.6.0alpha1. Other PHP versions retain the described default installer paths.
Document PHP 8.6 tags
README.md
The Quick Start and Laravel Compose examples use PHP 8.6 tags. The tag documentation adds PHP 8.6 and states that the latest and php8 aliases use PHP 8.6.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant Bake as docker-bake.hcl
  participant Builder as docker/build-php.sh
  participant Image as Dockerfile
  Bake->>Builder: Selects PHP 8.6 for the build
  Builder->>Image: Provides the built PHP version
  Image->>Image: Selects PHP 8.6-specific extension installation paths
Loading

Possibly related PRs

  • prvious/frankenphp#28: Defines the published tag scheme that this change extends with PHP 8.6 and updated aliases.
  • prvious/frankenphp#34: Adds source-build resolution and planner checks used by the PHP build pipeline that this change extends.
Merge Risk: Minimal · up to 11c40

This change adds PHP 8.6 images and moves the latest and php8 aliases to 8.6. No concrete defects were found in the build configuration, Dockerfile or README. Image build success across all suites and platforms is left to the CI matrix.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat: add PHP 8.6 images" matches the main change in the changeset. The raw summary shows PHP 8.6 build support in the Dockerfile, build-php.sh, docker-bake.hcl, and README, and the PR obje…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "feat: add PHP 8.6 images" matches the main change in the changeset. The raw summary shows PHP 8.6 build support in the Dockerfile, build-php.sh, docker-bake.hcl, and README, and the PR objectives describe adding PHP 8.6 development and production images for Debian Bookworm and Trixie. The title is concise and specific, and it follows conventional commit style. It does not cover the alias moves or the upstream patches, which is acceptable.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: d894a25d-d64d-4fc9-bb11-229b7cebe771
Commits

Reviewing files that changed from the base of the PR and between f3fab27 and 11c409f.

Files selected for processing: 5

  • AGENTS.md
  • Dockerfile
  • README.md
  • docker-bake.hcl
  • docker/build-php.sh

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ One minor image cleanup suggestion inline.

Approach: Sound — extend the existing source-build matrix and scope the extension compatibility changes to PHP 8.6.

Reviewed changes — I traced the build through source resolution, image assembly, and tag publication.

  • Build matrix: Adds PHP 8.6 on Bookworm and Trixie for both variants and architectures, moves latest, php8, and the local default to 8.6, and keeps the 8.4 and 8.5 versioned tags.
  • PHP compilation: Adds the 8.6 release signing keys and uses the new PIC defaults for the ZTS build.
  • Extensions: Uses upstream Imagick and IMAP fixes, installs the SQL Server drivers through PIE, and selects the Xdebug 3.6 prerelease for development images.
  • Validation: Offline source tests, shell and PHP syntax checks, and Bake matrix and alias checks passed. Live source resolution returned PHP 8.6.0. I couldn't run the image builds locally because no Docker daemon was available; the PR build matrix was still running.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.2-sol | 𝕏

Comment thread Dockerfile Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found in the PIE cleanup.

Reviewed changes — I reviewed e97cba3 against the previous review at 11c409f.

  • Moved PIE build files and Composer’s download cache into temporary directories and removed them in the same Docker layer, leaving both installed SQL Server extensions in place.

Validation: The Dockerfile shell syntax check passed. The Trixie amd64 dev build installed both extensions and ran the cleanup. The matching production build failed before cleanup because PIE could not authenticate to GitHub while downloading microsoft/sqlsrv. Rerun that check before merging.

Pullfrog  | View workflow run | Using gpt-6.2-sol | 𝕏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant